module.exports = async (req, res, next) => {
  let sessionUser = req.session.user;
  if (sessionUser) {
    return next();
  }

  res.redirect("/login");
};
